package com.songcha.sakura.download

import com.songcha.sakura.download.base.DownloadTask

interface IDownloadManager {
    fun putTask(task: DownloadTask)
    fun takeTask(): DownloadTask
    fun onInitialze(task: DownloadTask)
    fun onStart(task: DownloadTask)
    fun onComplete(task: DownloadTask)
    fun onPause(task: DownloadTask)
    fun onError(task: DownloadTask, e:Exception)
}